//--------------------------------------------------
/**
 *
 *      Hand Gesture Recognition System
 *
 */
//--------------------------------------------------
/**
 * //FORWARDBACKWARD CLASS//
 * Clase ForwardBackward que describe los resultados de un algoritmo Forward-Backward
 *
 * @author  Edwin Cobos & Cesar Murcia
 * @version HGR_v1.3
 *
 * Revisado: 18/11/11
 */
//--------------------------------------------------
//PACKAGE//
package hmm;
//IMPORT//
import java.util.Arrays;

//--------------------------------------------------
/**
 * Clase ForwardBackward que describe los resultados de un algoritmo Forward-Backward
 */
public class ForwardBackward
{
    //--------------------------------------------------
    /**
     * Valores de Forward.
     */
    public float[][] alfa;

    /**
     * Valores de Backward.
     */
    public float[][] beta;

    /**
     * Valores de Gamma.
     */
    public float[][] gamma;

    /**
     * Probabilidad de la secuencia de observaciones, dado el modelo
     */
    public float observationsProbability;

    //--------------------------------------------------
    @Override
    /**
     * Salida a String del algoritmo
     */
    public String toString()
    {
	StringBuilder returnValue;
	returnValue = new StringBuilder();
	returnValue.append("\n-----------ForwardBackwardResult-----------");
	returnValue.append("\nalfa:").append(Arrays.deepToString(alfa));
	returnValue.append("\nbeta:").append(Arrays.deepToString(beta));
	returnValue.append("\ngamma:").append(Arrays.deepToString(gamma));
	returnValue.append("\nobservationsProbability:").append(observationsProbability);
	returnValue.append("\n-------------------------------------------\n");

	return returnValue.toString();
    }
}
//--------------------------------------------------
//FIN
//--------------------------------------------------